package com.changan.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.changan.entity.Provider;
import com.changan.mapper.ProviderMapper;
import com.changan.service.ProviderService;
@Service
public class ProviderServiceImpl implements ProviderService{

    @Resource
    private ProviderMapper providerMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return providerMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Provider record) {
        return providerMapper.insert(record);
    }

    @Override
    public int insertSelective(Provider record) {
        return providerMapper.insertSelective(record);
    }

    @Override
    public Provider selectByPrimaryKey(Long id) {
        return providerMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Provider record) {
        return providerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Provider record) {
        return providerMapper.updateByPrimaryKey(record);
    }

}
